package cn.cdiothree.dataobject;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import cn.cdiothree.enums.PayStatusEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.DynamicParameter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 商品详情实体类
 */
@Data
public class ProductInfo implements Serializable {


    /**
     * 商品ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer Id;

    /**
     * 类目编号
     */
    private Integer parentId;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 商品价格
     */
    private BigDecimal productPrice;

    /**
     * 商品描述
     */
    private String productDescription;

    /**
     * 商品主图，url相对地址
     */
    private String mainImage;


    /**
     * 库存数量
     */
    public Integer stock;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


    public ProductInfo() {
    }

    public ProductInfo(Integer id, Integer parentId, String productName, BigDecimal productPrice, String productDescription, String mainImage, Integer stock) {
        Id = id;
        this.parentId = parentId;
        this.productName = productName;
        this.productPrice = productPrice;
        this.productDescription = productDescription;
        this.mainImage = mainImage;
        this.stock = stock;

    }



}
